Skip to content
This repository was archived by the owner on Aug 17, 2020. It is now read-only.

Add Query to the cause of exception in QueryObservable#48

Merged
JakeWharton merged 1 commit into
square:masterfrom
artem-zinnatullin:queryobservable-add-query-to-exception
Aug 31, 2015
Merged

Add Query to the cause of exception in QueryObservable#48
JakeWharton merged 1 commit into
square:masterfrom
artem-zinnatullin:queryobservable-add-query-to-exception

Conversation

@artem-zinnatullin
Copy link
Copy Markdown
Contributor

Now Query.toString() will be part of the exception stack trace for QueryObservable.mapToList().

Plus 2 little unit tests to assert that QueryObservable respects the Observable contract at least for errors.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can add a test which will check that query.toString() is part of the stacktrace, but it'll require copy-paste from apache commons or I can add it as test dependency, because retrieving full stacktrace is not so trivial.

JakeWharton added a commit that referenced this pull request Aug 31, 2015
…ry-to-exception

Add Query to the cause of exception in QueryObservable
@JakeWharton JakeWharton merged commit f68ddb4 into square:master Aug 31, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants